Add missing AtkRelations for labelled containers in the print dialog
authorJoanmarie Diggs <jdiggs@igalia.com>
Mon, 24 Mar 2014 22:19:40 +0000 (18:19 -0400)
committerJoanmarie Diggs <jdiggs@igalia.com>
Tue, 25 Mar 2014 14:26:24 +0000 (10:26 -0400)
These AtkRelation types are added automatically for widgets with a label
specified (e.g. via gtk_label_set_mnemonic_widget, gtk_frame_set_label,
and gtk_frame_set_label_widget). When such specification is absent, the
accessible relationship must be manually set.

https://bugzilla.gnome.org/show_bug.cgi?id=726996

gtk/resources/ui/gtkprintunixdialog.ui

index ebbf4e2c11ba999943e52b720a8bce3e1368ef31..cb4c07b0e62668994e6289a13e9bdbb432fcf8d0 100644 (file)
                                 <attributes>
                                   <attribute name="weight" value="bold"/>
                                 </attributes>
+                                <accessibility>
+                                  <relation type="label-for" target="range_table"/>
+                                </accessibility>
                               </object>
                               <packing>
                                 <property name="expand">False</property>
                                     <property name="height">1</property>
                                   </packing>
                                 </child>
+                                <accessibility>
+                                  <relation type="labelled-by" target="label_widget1"/>
+                                </accessibility>
                               </object>
                               <packing>
                                 <property name="expand">False</property>
                                 <attributes>
                                   <attribute name="weight" value="bold"/>
                                 </attributes>
+                                <accessibility>
+                                  <relation type="label-for" target="grid1"/>
+                                </accessibility>
                               </object>
                               <packing>
                                 <property name="expand">False</property>
                                     <property name="height">2</property>
                                   </packing>
                                 </child>
+                                <accessibility>
+                                  <relation type="labelled-by" target="label_widget2"/>
+                                </accessibility>
                               </object>
                               <packing>
                                 <property name="expand">False</property>
                                 <attributes>
                                   <attribute name="weight" value="bold"/>
                                 </attributes>
+                                <accessibility>
+                                  <relation type="label-for" target="grid2"/>
+                                </accessibility>
                               </object>
                               <packing>
                                 <property name="expand">False</property>
                                     <property name="height">1</property>
                                   </packing>
                                 </child>
+                                <accessibility>
+                                  <relation type="labelled-by" target="label_widget3"/>
+                                </accessibility>
                               </object>
                               <packing>
                                 <property name="expand">False</property>
                                 <attributes>
                                   <attribute name="weight" value="bold"/>
                                 </attributes>
+                                <accessibility>
+                                  <relation type="label-for" target="grid3"/>
+                                </accessibility>
                               </object>
                               <packing>
                                 <property name="expand">False</property>
                                     <property name="height">1</property>
                                   </packing>
                                 </child>
+                                <accessibility>
+                                  <relation type="labelled-by" target="label_widget4"/>
+                                </accessibility>
                               </object>
                               <packing>
                                 <property name="expand">False</property>
                             <attributes>
                               <attribute name="weight" value="bold"/>
                             </attributes>
+                            <accessibility>
+                              <relation type="label-for" target="grid5"/>
+                            </accessibility>
                           </object>
                           <packing>
                             <property name="expand">False</property>
                                 <property name="height">1</property>
                               </packing>
                             </child>
+                            <accessibility>
+                              <relation type="labelled-by" target="label_widget5"/>
+                            </accessibility>
                           </object>
                           <packing>
                             <property name="expand">False</property>
                             <attributes>
                               <attribute name="weight" value="bold"/>
                             </attributes>
+                            <accessibility>
+                              <relation type="label-for" target="grid6"/>
+                            </accessibility>
                           </object>
                           <packing>
                             <property name="expand">False</property>
                                 <property name="height">1</property>
                               </packing>
                             </child>
+                            <accessibility>
+                              <relation type="labelled-by" target="label_widget6"/>
+                            </accessibility>
                           </object>
                           <packing>
                             <property name="expand">False</property>
                             <attributes>
                               <attribute name="weight" value="bold"/>
                             </attributes>
+                            <accessibility>
+                              <relation type="label-for" target="grid7"/>
+                            </accessibility>
                           </object>
                           <packing>
                             <property name="expand">False</property>
                                 <property name="height">1</property>
                               </packing>
                             </child>
+                            <accessibility>
+                              <relation type="labelled-by" target="label_widget7"/>
+                            </accessibility>
                           </object>
                           <packing>
                             <property name="expand">False</property>